package com.yiyuan.app.entity.enums;

/**
 * @Author: sunxuzong
 * @Date: 2024/07/19
 */
public enum RoomTypeEnum {
    push_coins(0,"推币机"),
    arcade_machine(1,"街机"),
    recreation(2,"娱乐")
    ;

    private Integer code;

    private String desc;

    RoomTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static RoomTypeEnum getByCode(Integer code){
        for (RoomTypeEnum enums : RoomTypeEnum.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return  null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
